# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
pkgname=bcnm
pkgver=0.0.1.7
pkgrel=0
pkgdesc="Better Client Network Manager"
url=https://skarnet.org/software/bcnm/
arch="all"
license="ISC"
options="!check"
makedepends="skalibs-dev>=2.14 linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="https://skarnet.org/software/bcnm/bcnm-$pkgver.tar.gz"

build() {
	./configure \
		--enable-shared \
		--enable-static \
		--disable-allstatic \
		--prefix=/usr \
		--libdir=/usr/lib \
		--libexecdir="/usr/lib/$pkgname" \
		--with-dynlib=/lib
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

doc() {
	default_doc
	mkdir -p "$subpkgdir/usr/share/doc"
	cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
}

sha512sums="
b8e03eef743097b6f44864269b336dc579b8b835ba24006d09d7da5d03637f101c1840594af8b7a28cb2062096df0e3ade7559b6f97b9472d24df42d2998e6d2  bcnm-0.0.1.7.tar.gz
"
